projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
263b968
)
Tweak the behaviour of thing-at-point--end-of-sexp
author
Lars Ingebrigtsen
<larsi@gnus.org>
Fri, 26 Jul 2019 05:59:41 +0000
(07:59 +0200)
committer
Lars Ingebrigtsen
<larsi@gnus.org>
Fri, 26 Jul 2019 05:59:41 +0000
(07:59 +0200)
* lisp/thingatpt.el (thing-at-point--end-of-sexp): Don't return
nil when called with point between two parentheses (bug#29499).
lisp/thingatpt.el
patch
|
blob
|
history
diff --git
a/lisp/thingatpt.el
b/lisp/thingatpt.el
index 60a20e2d188bb1d17b683e18e6b750cf50cd87ff..319f4b2cf8ac2b66dd3447672391307492489a2d 100644
(file)
--- a/
lisp/thingatpt.el
+++ b/
lisp/thingatpt.el
@@
-194,7
+194,9
@@
The bounds of THING are determined by `bounds-of-thing-at-point'."
(if (or (eq char-syntax ?\))
(and (eq char-syntax ?\") (nth 3 (syntax-ppss))))
(forward-char 1)
- (forward-sexp 1))))
+ (condition-case _
+ (forward-sexp 1)
+ (scan-error nil)))))
(define-obsolete-function-alias 'end-of-sexp
'thing-at-point--end-of-sexp "25.1"